﻿using System;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;

namespace E4RPManager
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("pt-PT");
            var controller = new Controller();
            controller.SetLogFile();
            if (!controller.Login())
                return;
            var main = new MainRibbonForm { Controller = controller };
            Application.Run(main);   
        }
    }
}
